#include <math.h>
#include <iostream>
#include <vector>

#include "common.h"

using namespace std;

int main()
{
   vector<cg::point_2> points;
   for (int i = 0; i < 3; ++i) {
      for (int j = 0; j < 3; ++j) {
         points.push_back(cg::point_2(i, j));
      }
   }
   size_t ps = points.size();
   std::cout << ps * ps * ps * ps << "\n";
   std::cout << "0" << "\n";
   for (int i = 0; i < ps; ++i) {
      for (int j = 0; j < ps; ++j) {
         for (int i1 = 0; i1 < ps; ++i1) {
            for (int j1 = 0; j1 < ps; ++j1) {
               std::cout << points[i].x << " " << points[i].y << " " << points[j].x << " " << points[j].y << "\n";
               std::cout << points[i1].x << " " << points[i1].y << " " << points[j1].x << " " << points[j1].y << "\n";
            }
         }
      }
   }
}
